# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ntds-decode
pkgver=0.1
pkgrel=6
groups=('blackarch' 'blackarch-windows' 'blackarch-cracker')
pkgdesc='This application dumps LM and NTLM hashes from active accounts stored in an Active Directory database.'
arch=('any')
url='http://packetstormsecurity.com/files/121543/NTDS-Hash-Decoder-01.b.html'
license=('custom:unknown')
makedepends=('unzip')
source=('https://dl.packetstormsecurity.net/Win/ntds_decode.zip')
sha512sums=('8be2a57ac3334e162a78e4ffbbf47c92de4fdd1ec26034f7d52a11e81cdc3bd8bce8b687ca8ca178b4c95d8657fa7c882a2eef3ed9864605c95b1f9f81df3201')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm ntds_decode.zip

  cp -a * "$pkgdir/usr/share/windows/$pkgname"
}

